import { get, post, del } from './request'

export function getVideoList(params) {
  return get('/video/page', params)
}

export function getVideoDetail(id) {
  return get('/video/detail', { id })
}

export function addVideo(data) {
  return post('/video/add', data)
}
export function editVideo(data) {
  return post('/video/edit', data)
}

export function delVideo(id) {
  return del('/video/del', { id })
}

export function updatePlaybackCount(id) {
  return post('/video/update-Playback', { id })
}